package org.neuedu.ssmp.crm.controller;

import org.neuedu.ssmp.crm.entity.Area;
import org.neuedu.ssmp.crm.entity.Customer;
import org.neuedu.ssmp.crm.entity.Tji;
import org.neuedu.ssmp.crm.service.ICustomerService;
import org.neuedu.ssmp.crm.service.ITjiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.constraints.Max;
import java.util.List;

@RestController
@RequestMapping("/a")
public class TjiController {
    @Autowired
    private ITjiService tjiService;
    @RequestMapping("/b")
    public List<Tji> list(){
        return tjiService.hh();
    }
    @RequestMapping("/c")
    public List<Tji> list1(){
        return tjiService.hh1();
    }
    @RequestMapping("/d")
    public List<Tji> list2(){
        return tjiService.hh2();
    }
}
